package spring.fox;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author cuichao
 */
@ConfigurationProperties(prefix = "fox.rpc" )
public class SpringFoxConfigureProperties {
    /**
     * applicationName
     */
    private String applicationName;
    /**
     * 绑定端口号
     */
    private int port;
    /**
     * 绑定地址
     */
    private String bind;
    /**
     * 分组
     */
    private String group;
    /**
     * 注册中心名称
     */
    @Value("${fox.rpc.register.type}")
    private String register = "zookeeper";

    @Value("${fox.rpc.register.servers}")
    private String servers;



    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getBind() {
        return bind;
    }

    public void setBind(String bind) {
        this.bind = bind;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getRegister() {
        return register;
    }

    public void setRegister(String register) {
        this.register = register;
    }

    public String getServers() {
        return servers;
    }

    public void setServers(String servers) {
        this.servers = servers;
    }
}
